package com.awenhui.demo.core.handler;

import com.awenhui.demo.core.base.IBaseEnum;
import com.baomidou.mybatisplus.annotation.IEnum;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;

import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author yuxf
 * @version 1.0
 * @date 2021/6/3 14:15
 */
public class ResultCodeTypeHandler2 extends BaseTypeHandler<IBaseEnum> {
    @Override
    public void setNonNullParameter(PreparedStatement ps, int i, IBaseEnum parameter, JdbcType jdbcType) throws SQLException {

    }

    @Override
    public IBaseEnum getNullableResult(ResultSet rs, String columnName) throws SQLException {
        return null;
    }

    @Override
    public IBaseEnum getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public IBaseEnum getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
        return null;
    }
}
